package Game;

import java.util.Vector;

public class Room
{
    String roomName;
    Vector<Player> players;

    public Room(String name)
    {
        roomName = name;
    }

    public String getRoomName() {
        return roomName;
    }
    public void enterRoom(Player playerName)
    {
        players.add(playerName);
    }
    public void leaveRoom(Player playerName)
    {
        for(int i =0; i < players.size(); i++)
        {
           if (players.get(i) == playerName)
           {
               players.remove(i);
           }
        }

    }
}